package com.liuyu.common.framework;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 异步事件监听机制
 * //@EnableCircuitBreaker 开启路由断路器功能 才可以使用 @HystrixCommand
 *
 * @author liuyu
 * @EnableAsync
 * @date 2021/8/23 15:44
 */
@SpringBootApplication
@EnableAsync
@EnableFeignClients
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
